<?php

require_once( 'mvc/dispatcher.php' );

require_once( 'flexical/admin/main-request-factory.php' );
require_once( 'flexical/admin/controller-factory.php' );
require_once( 'flexical/admin/view-factory.php' );

class Flexical_Admin_Dispatcher_Factory
{
	public static function get_dispatcher()
	{
		$request_factory    = new Flexical_Admin_Main_Request_Factory();
		$controller_factory = new Flexical_Admin_Controller_Factory();
		$view_factory       = new Flexical_Admin_View_Factory();

		return new MVC_Dispatcher( $request_factory, $controller_factory, $view_factory );
	}
}

?>
